
package com.plian.system.service.fr.report.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.plian.system.entity.fr.report.ReportAdjustmentRelation;
import com.plian.system.mapper.fr.report.ReportAdjustmentRelationMapper;
import com.plian.system.service.fr.report.IReportAdjustmentRelationService;
import lombok.AllArgsConstructor;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

/**
 * 预算表和预算调整表 指标关系表 服务实现类
 *
 * @author jianglei
 * @since 2019-10-23
 */
@Service
@AllArgsConstructor
public class ReportAdjustmentRelationServiceImpl extends ServiceImpl<ReportAdjustmentRelationMapper, ReportAdjustmentRelation> implements IReportAdjustmentRelationService {
    /**
     * logger属性.
     */
    private static final Logger LOGGER  = LoggerFactory.getLogger(ReportAdjustmentRelationServiceImpl.class);

    @Override
    public ReportAdjustmentRelation getAdjustment(String reportTableName, String reportColumns, String reportLines, String version) {
        return getOne(new QueryWrapper<ReportAdjustmentRelation>().eq("report_table_name", reportTableName)
                .eq("report_columns", reportColumns).eq("report_lines", reportLines).eq("version", version));
    }
}
